<template>
    <router-view></router-view>
</template>

<script>
    import Vue from 'vue'
    import api from './api/api.js'
    const API =new api();
    export default {
        data () {
            return {
                classId: Uri.query().get('classId'),
            }
        },
        mounted(){
            this.getUserInfo();
            this.saveBg();
        },
        methods:{
            saveBg(){
                Vue.prototype.blurBg=this.$util.getDefaultBg();
            },
            getUserInfo(){
                let param = {
                    classId:this.classId
                };
                API.getUserInfo(param).then((res)=> {
                    const {rs,code}=res;
                    if(code==200){
                        sessionStorage.setItem('userInfo',JSON.stringify(rs))
                    }
                })
            },
        }
    }
</script>

<style lang="scss">

</style>
